package com.netease.image.video;

import android.app.Activity;
import android.content.ComponentName;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.res.Resources;
import android.content.res.Resources.NotFoundException;
import android.os.Bundle;
import java.util.ArrayList;
import java.util.Iterator;

public class MonitoredActivity extends Activity
{
  private final ArrayList a = new ArrayList();
  private final String b = "logname";
  private String c;

  private String b()
  {
    Object localObject = null;
    try
    {
      ActivityInfo localActivityInfo2 = getPackageManager().getActivityInfo(c(), 128);
      localActivityInfo1 = localActivityInfo2;
      if (localActivityInfo1 == null)
        return localObject;
    }
    catch (PackageManager.NameNotFoundException localNameNotFoundException)
    {
      while (true)
      {
        localNameNotFoundException.printStackTrace();
        ActivityInfo localActivityInfo1 = null;
        continue;
        if (localActivityInfo1.metaData == null)
          continue;
        int i = localActivityInfo1.metaData.getInt("logname");
        if (i <= 0)
          continue;
        try
        {
          String str = getResources().getString(i);
          localObject = str;
        }
        catch (Resources.NotFoundException localNotFoundException)
        {
          localNotFoundException.printStackTrace();
        }
      }
    }
  }

  private ComponentName c()
  {
    ComponentName localComponentName = getComponentName();
    if (localComponentName == null)
      localComponentName = new ComponentName(this, getClass());
    return localComponentName;
  }

  public String a()
  {
    if (this.c == null)
      this.c = b();
    return this.c;
  }

  public void a(t paramt)
  {
    if (this.a.contains(paramt));
    while (true)
    {
      return;
      this.a.add(paramt);
    }
  }

  public void b(t paramt)
  {
    this.a.remove(paramt);
  }

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    Iterator localIterator = this.a.iterator();
    while (localIterator.hasNext())
      ((t)localIterator.next()).a(this);
  }

  protected void onDestroy()
  {
    super.onDestroy();
    Iterator localIterator = this.a.iterator();
    while (localIterator.hasNext())
      ((t)localIterator.next()).b(this);
  }

  public boolean onSearchRequested()
  {
    return false;
  }

  protected void onStart()
  {
    super.onStart();
    Iterator localIterator = this.a.iterator();
    while (localIterator.hasNext())
      ((t)localIterator.next()).c(this);
  }

  protected void onStop()
  {
    super.onStop();
    Iterator localIterator = this.a.iterator();
    while (localIterator.hasNext())
      ((t)localIterator.next()).d(this);
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.image.video.MonitoredActivity
 * JD-Core Version:    0.6.0
 */